#pragma once

#include <drogon/HttpSimpleController.h>
using namespace drogon;

class TestCtrl : public drogon::HttpSimpleController<TestCtrl>
{
public:
    virtual void asyncHandleHttpRequest(const HttpRequestPtr &req,
                                        std::function<void(const HttpResponsePtr &)> &&callback) override;
    PATH_LIST_BEGIN
    // list path definitions here;
    // PATH_ADD("/path","filter1","filter2",HttpMethod1,HttpMethod2...);
    // PATH_ADD("/",Get,Post);
    // PATH_ADD("/getallipaddr", Get);
    PATH_LIST_END
};

class MyClass : public drogon::HttpSimpleController<MyClass>
{
public:
    // TestController(){}
    virtual void asyncHandleHttpRequest(const HttpRequestPtr &req,
                                        std::function<void(const HttpResponsePtr &)> &&callback) override;

    PATH_LIST_BEGIN
    // PATH_ADD("/get_camera_state");
    PATH_LIST_END
};
